package flst.ipiweb.common;

import java.util.Random;
import java.util.UUID;

public class Delivery {

	private int id;
	private DeliveryRecipient recipient;
	private TypeLivraison typeLivraison;
	private boolean isSent;

	public Delivery() {
		Random r = new Random();
		this.setId(r.nextInt(Integer.MAX_VALUE));
	}

	public Delivery(int id) {
		this.setId(id);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public DeliveryRecipient getRecipient() {
		return recipient;
	}

	public void setRecipient(DeliveryRecipient recipient) {
		this.recipient = recipient;
	}

	public TypeLivraison getTypeLivraison() {
		return typeLivraison;
	}

	public void setTypeLivraison(TypeLivraison typeLivraison) {
		this.typeLivraison = typeLivraison;
	}

	public boolean getIsSent() {
		return isSent;
	}

	public void setIsSent(boolean isSent) {
		this.isSent = isSent;
	}

	
}
